package com.zd.service.collect.impl;

import com.zd.domain.Collect;
import com.zd.mapper.CollectMapper;
import com.zd.service.collect.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CollectServiceImpl implements CollectService {

    @Autowired
    private CollectMapper collectMapper;
    @Override
    public List MyCollectList(int userId) {
        return collectMapper.MyCollectList(userId);
    }

    @Override
    public int collectCourse(int userId, int goodId) {
        return collectMapper.collectCourse(userId, goodId);
    }

    @Override
    public int noCollectCourse(int userId, int goodId) {
        return collectMapper.noCollectCourse(userId, goodId);
    }
}
